package com.harveyguo.nihonngo.model.dto;

import com.harveyguo.nihonngo.enums.Gender;
import com.harveyguo.nihonngo.enums.UserType;
import lombok.Data;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * @Author：HarveyGuo
 * @Package：com.harveyguo.nihonngo.model.entity.dto
 * @Project：BestReading_back
 * @name：UserCreateDto
 *                     @Date：2023/2/16 15:03
 * @Filename：UserCreateDto
 * @Describe：Do something
 */

@Data
public class UserCreateDto {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 3, max = 20, message = "用户名长度必须在3-20之间")
    private String username;
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20之间")
    private String password;
    @Email(message = "邮箱格式不正确")
    private String email;
    private String phone;
    private String avatar;
    private Gender gender;
    private UserType userType = UserType.USER;
    private Integer age;
    private Double weight;
    private Double height;
    private String boxingLevel;
    private Integer experienceYears;
    private String preferredStyle;
    private String introduction;
}
